package com.sgb.kjwl.view.ui.adapter.transport;

import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;
import com.sgb.kjwl.R;
import com.sgb.kjwl.model.entity.transport.GoodsOfferUnits;
import com.sgb.kjwl.utils.NumberUtil;
import com.swgk.core.util.StringUtil;

import java.util.List;

/**
 * @Author : 熊丽
 * @date :2021/10/09 0020$ 15:54$
 * @Description ://邀请挂靠车队适配器
 */
public class InvitationFleetAdapter extends BaseQuickAdapter<GoodsOfferUnits, BaseViewHolder>  {
    private boolean isOwner;
    private int tips = 3;
    private List<GoodsOfferUnits> data;
    /**
     * Same as QuickAdapter#QuickAdapter(Context,int) but with
     * some initialization data.
     *
     * @param data A new list is created out of this one to avoid mutable list
     */
    public InvitationFleetAdapter(List<GoodsOfferUnits> data, boolean isOwner) {
        super(R.layout.item_invitation_fleet, data);
        this.isOwner = isOwner;
        this.data = data;
    }

    @Override
    protected void convert(BaseViewHolder helper, GoodsOfferUnits item) {
        //设置公用按钮监听
        helper.addOnClickListener(R.id.tv_item_invitation_edit);
    }
}
